Comets can be classified into different groups according to when their somewhat eccentric orbits bring them near to the Sun.